-- GENERATED SPELL FOR [Bloodmage Drazial] --


function spell0_7505(pUnit, Event) --@Rage of Ages,n/a--
pUnit:FullCastSpellOnTarget(10670,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7505', 598, 1)
end

function spell1_7505(pUnit, Event) --@Spirit of Boar,n/a--
pUnit:FullCastSpellOnTarget(10671,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7505', 590, 1)
end

function spell2_7505(pUnit, Event) --@Strike of the Scorpok,n/a--
pUnit:FullCastSpellOnTarget(10672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7505', 670, 1)
end

function Sorts_7505(pUnit, Event)
local choix_sorts_7505 = math.random(0, 2)
if choix_sorts_7505 == 0 then
pUnit:RegisterEvent('spell0_7505', 1, 1)
end
if choix_sorts_7505 == 1 then
pUnit:RegisterEvent('spell1_7505', 1, 1)
end
if choix_sorts_7505 == 2 then
pUnit:RegisterEvent('spell2_7505', 1, 1)
end
end

function mob7505_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7505', math.random(1500, 3000), 1)
end

function mob7505_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7505_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7505_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7505, 1, 'mob7505_Action')
RegisterUnitEvent(7505, 2, 'mob7505_Leave')
RegisterUnitEvent(7505, 3, 'mob7505_Kill')
RegisterUnitEvent(7505, 4, 'mob7505_Die')
